package com.eduadmin.service;

import com.eduadmin.entity.TeamCourseRate;
import com.eduadmin.mapper.TeamCourseRateMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TeamCourseRateServiceImpl implements ITeamCourseRateService{
    private final TeamCourseRateMapper teamCourseRateMapper;
@Autowired
    public TeamCourseRateServiceImpl(TeamCourseRateMapper teamCourseRateMapper) {
        this.teamCourseRateMapper = teamCourseRateMapper;
    }
    @Override
    public int batchInsert(List<TeamCourseRate> teamCourseRateList){
        teamCourseRateMapper.batchInsert(teamCourseRateList);
        return 1;
    }
    public List<TeamCourseRate> getQueTeamCourseRate(Map<String,Object> paraMap){
        return teamCourseRateMapper.getQueTeamCourseRate(paraMap);
    }
    public int deleteByParams(Map<String,Object> paraMap){
        teamCourseRateMapper.deleteByParams(paraMap);
    return 1;
    }
    // 按条件查询班级学科四率记录条数
    public int getTeamCourseRateNumberByParams(Map<String,Object> paraMap){
    return teamCourseRateMapper.getTeamCourseRateNumberByParams(paraMap);
    }
}
